package com.example.v3admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户信息表
 * @TableName sys_user
 */
@Schema(description = "用户对象")
@TableName(value ="sys_user")
@Data
public class SysUser {
    /**
     * 
     */
    @Schema(description = "用户ID",example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @Schema(description = "用户名",example = "admin")
    private String username;

    /**
     * 昵称
     */
    @Schema(description = "昵称",example = "管理员")
    private String nickname;

    /**
     * 性别((1-男 2-女 0-保密)
     */
    @Schema(description = "性别((1-男 2-女 0-保密)",example = "1")
    private Integer gender;

    /**
     * 密码
     */
    @Schema(description = "密码",example = "abc123456")
    private String password;

    /**
     * 部门ID
     */
    @Schema(description = "部门ID",example = "1")
    private Integer deptId;

    /**
     * 用户头像
     */
    @Schema(description = "用户头像",example = "https://img2.baidu.com/it/u=1707068805,2482349926&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800")
    private String avatar;

    /**
     * 联系方式
     */
    @Schema(description = "联系方式",example = "15555555555")
    private String mobile;

    /**
     * 状态((1-正常 0-禁用)
     */
    @Schema(description = "状态((1-正常 0-禁用)",example = "1")
    private Integer status;

    /**
     * 用户邮箱
     */
    @Schema(description = "用户邮箱",example = "xx@126.com")
    private String email;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间",example = "2019-10-10 00:00:00")
    private Date createTime;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID",example = "1")
    private Long createBy;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间",example = "2024-10-10 00:00:00")
    private Date updateTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID",example = "1")
    private Long updateBy;

    /**
     * 逻辑删除标识(0-未删除 1-已删除)
     */
    @Schema(description = "逻辑删除标识(0-未删除 1-已删除)",example = "0")
    private Integer isDeleted;

    /**
     * 微信 openid
     */
    @Schema(description = "微信 openid",example = "abcdefghijklmnopqrstuvwxyz")
    private String openid;
}